package com.xhsj.user.sms.announcement.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xhsj.user.sms.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 企业公告
 * </p>
 *
 * @author suxiaolin
 * @since 2020-06-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_enterprise_announcement")
public class TbEnterpriseAnnouncement extends BaseEntity<TbEnterpriseAnnouncement> {

    private static final long serialVersionUID = 1L;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 摘要
     */
    @TableField("digest")
    private String digest;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Integer deptId;

    /**
     * 类型 0普通公告  1通知公告
     */
    @TableField("type")
    private Integer type;

    /**
     * 接收状态 0 已接收 1未接收
     */
    @TableField("receiving_status")
    private Integer receivingStatus;

    //附件
    @TableField(exist = false)
    private List<TbEnterpriseAnnouncementFile> tbEnterpriseAnnouncementFileList;

    @TableField(exist = false)
    private String deptName;  //部门名称

    @TableField(exist = false)
    private String fullName; //用户名


}
